using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TextDisplayable : DisplayableBase
{
    public new Text_ Data;

    public static int CurrentIndex;
    public TextDisplayable(DataBase data) : base(data)
    {
        Data = data as Text_;
        DrawItem = GameGraphics.Ins.textItem;

    }

    public override void Draw(int id)
    {
        CurrentIndex++;
        base.Draw(id);
        ((DrawText)CurrentDrawItem).DrawTextItem(Data,id);
    }
    public override int GetIndex()
    {
        return CurrentIndex;
    }
    public override void Hide()
    {
        base.Hide();
        CurrentIndex = 0;
    }
}
